package blue.blog;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import blue.blog.util.BlogSync;

public class SyncMain
{
	public static void main(String[] args) throws IOException
	{
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("spring/*.xml");

		BlogSync sync = ctx.getBean(BlogSync.class);
		sync.clear();

		ctx.registerShutdownHook();
	}
}
